#include "player.h"
#include<QMovie>
#include "gamedfine.h"
Player::Player(QWidget *parent)
    : QLabel{parent}
{
    pSpeed=GameDfine::m_PlayerSpeed;//人物移动速度
    m_movie1=new QMovie(":/nihao.gif");//左
    m_movie2=new QMovie(":/nihao2.gif");//右
    m_movie3=new QMovie(":/nihao3.gif");//静止
    m_movie4=m_movie2;//记录指针
    //设置人物大小
    m_movie1->setScaledSize(QSize(110,130));
    m_movie2->setScaledSize(QSize(110,130));
    m_movie3->setScaledSize(QSize(143,132));
    m_movie4->setScaledSize(QSize(110,130));
    m_movie3->start();//初始为静止
}
